package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.PersonDiathesisAbilityEstimateForm;
import com.zhijian.medical.entity.vo.request.PersonDiathesisAbilityEstimateFormSearchVo;
import com.zhijian.medical.entity.vo.response.PersonDiathesisAbilityEstimateFormVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PersonDiathesisAbilityEstimateFormMapper {
    int deleteByPrimaryKey(Long id);

    int insert(PersonDiathesisAbilityEstimateForm record);

    int insertSelective(PersonDiathesisAbilityEstimateForm record);

    PersonDiathesisAbilityEstimateForm selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PersonDiathesisAbilityEstimateForm record);

    int updateByPrimaryKey(PersonDiathesisAbilityEstimateForm record);

    int count(PersonDiathesisAbilityEstimateFormSearchVo personDiathesisAbilityEstimateFormSearchVo);

    List<PersonDiathesisAbilityEstimateFormVo> selectList(PersonDiathesisAbilityEstimateFormSearchVo personDiathesisAbilityEstimateFormSearchVo);

    PersonDiathesisAbilityEstimateFormVo selectVoById(Long id);

    int insertBatch(@Param("entities") List<PersonDiathesisAbilityEstimateForm> entities);

    /**
     * 查询出某天最新数据的code
     *
     * @param day
     * @return
     */
    String selectMaxCodeByDay(String day);
}